﻿namespace Web.Control.Member.Teach
{
    using System;
    using System.Data;
    using System.Drawing;
    using System.Web;
    using System.Web.Security;
    using System.Web.UI.WebControls;
    using System.Web.UI.HtmlControls;
    using System.Text.RegularExpressions;
    using Lx.Web.Common.UI;
    using Lx.Web.Common.ControlsUI;
    using System.Collections;

    using BLF.WWW_User.Teach;
    using Model.WWW_User.Teach;

    public class Default : BaseControl
    {

        protected string os="";
        protected override void OnLoad(EventArgs e)
        {
            string memberno = HttpContext.Current.User.Identity.Name;
            if (memberno== "")
            {
                Page.Response.Redirect(LoginHost + "/User/login.htm?ReturnUrl=" + Page.Request.Url.AbsoluteUri);
            }
            if ((!(string.IsNullOrEmpty(Request.QueryString["s"])))&& Request.QueryString["s"] == "3")
            {
                os=Teach.GetApTeachUpSt(memberno);
            }
            else
            {
                os = Teach.GetApTeach(memberno);
            }
           if (os == "-1")
           {
               Response.End();
           }
        }
    }
}
